package com.xinghen.ace.auth.feign;

import com.xinghen.ace.auth.configuration.FeignConfiguration;
import com.xinghen.ace.auth.util.JwtAuthenticationRequest;
import com.xinghen.ace.common.model.UserInfo;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author xinghen
 * @ClassName: IUserService
 * @Package: com.xinghen.ace.auth.feign
 * @Description 用户服务
 * @create 2018/5/4 16:00
 */
@FeignClient(value = "ace-admin", configuration = FeignConfiguration.class)
public interface IUserService {

    @RequestMapping(value = "/api/user/validate", method = RequestMethod.POST)
    public UserInfo validate(@RequestBody JwtAuthenticationRequest authenticationRequest);
}
